package it.tukano.treditor.modules;

import it.tukano.app.AbstractAppModule;
import it.tukano.app.AppModule;
import it.tukano.swingdeco.containers.JPanelExt;
import java.awt.BorderLayout;

/** This module manages the model store of the program. */
public class ModelStore extends AbstractAppModule {

    private final JPanelExt component = new JPanelExt()
            .withName("Model Store");

    @Override
    public void startModule(AppModule context) {
        super.startModule(context);
        invokeWithModules("startModule", MainFrame.class, AppSettingsModule.class);
    }
    
    public void startModule(MainFrame frame, AppSettingsModule settings) {
        frame.install(component, BorderLayout.CENTER, true);
    }
}
